package com.itheima.Test05;

public class Demo {
    public static void main(String[] args) {
        //使用有参构造创建Manager和Clerk对象 并且赋值,参数列表的顺序必须保持一致;
        Manager M = new Manager("M001","张小强","销售部");
        Clerk C = new Clerk("C001","李小亮","销售部");
        //调用M 中的setC方法修改C的name;
        M.setC(C);
        //调用C中的setM方法修改M的name;
        C.setM(M);
        M.showMsg();
        C.showMsg();



    }
}
